﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Atlantyda
{
    public class AgentMapField : Field
    {
        private bool obstacle;
        private List<String> last_rorates = new List<String>();
        private int last_orientation = -1;

        public bool Obstacle
        {
            set { obstacle = value; }
            get { return obstacle; }
        }

        public List<String> LastRotate
        {
            set { last_rorates = value; }
            get { return last_rorates; }
        }

        public int LastOrientation
        {
            set { last_orientation = value; }
            get { return last_orientation; }
        }

        public AgentMapField(int x, int y, int height, int e = 0, bool o = false)
        {
            CoordianteX = x;
            CoordianteY = y;
            Height = height;
            Energy = e;
            obstacle = o;
        }

        public AgentMapField(AgentMapField field)
        {
            CoordianteX = field.CoordianteX;
            CoordianteY = field.CoordianteY;
            Height = field.Height;
            Energy = field.Energy;
            obstacle = field.obstacle;
            last_rorates = field.last_rorates;
            last_orientation = field.last_orientation;
        }
    }
}
